/**
 * Created by BIYY on 2018-6-25.
 */

const _config = require('../config');
let _api: any = {};
_api.requestType = _config.requestType;
let scrapyUrl = 'https://music.163.com';
let downloadUrl = 'https://music.163.com';
// 爬网页
_api.scrapyMusic163 = {
    url: `${scrapyUrl}/discover`,
    html:true,
    method: _api.requestType.get,
};
// 下载
_api.downloadMusic = {
    url: `${downloadUrl}/song/media/outer/url`,
    download:true,
    method: _api.requestType.get,
};
// 下载歌词
_api.downloadLyric = {
    url: `${scrapyUrl}/api/song/lyric?lv=1&kv=1&tv=1`,
   /* download:true,*/
    method: _api.requestType.get,
};
module.exports =_api;
